﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="RefundDetail.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.InvoiceManage.RefundDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--  <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">结算详情</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                结算单编号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInvoicePayNo" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                结算单名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInvoicePayName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                发票编号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txInvoiceID" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                支付时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtInvoicePayTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txtInvoicePayTimeTo" runat="server"
                                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Width="62px"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购医疗机构：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalname" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                单据状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddl_status" runat="server">
                                    <asp:ListItem Selected="True">全部</asp:ListItem>
                                    <asp:ListItem>已确认</asp:ListItem>
                                    <asp:ListItem>未确认</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
        </table>
    </div>--%>
    <div class="maincon">
        <div class="note">
            结算单明细</div>
        <div class="note2">
        </div>
        <table>
            <tr style="display:none;">
                <th>
                    结算单编号：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayId"></asp:Label>
                </td>
                <th>
                    结算单名称：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayNames"></asp:Label>
                </td>
            </tr>
            <tr>
                
                <th>
                    结算单名称：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayName"></asp:Label>
                </td>
                <th>
                    
                </th>
                <td>
       
                </td>
            </tr>
            <tr>
                <th>
                    应付金额：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblPayAmount"></asp:Label>
                </td>
                <th>
                    实付金额：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblActualAmount"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <asp:GridView ID="gvwRefundDetail" class="mainlist" runat="server" AutoGenerateColumns="False"
        OnRowDataBound="gvwRefundDetail_RowDataBound" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="发票号">
                <ItemTemplate>
                    <a href='RefundDetailInvoice.aspx?isID=<%# Eval("InvoiceID") %>'>
                        <asp:Label runat="server" ID="lblInvoiceID" Text='<%# HttpUtility.HtmlEncode(Eval("InvoiceID").ToString()) %>'></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
            <%--            <asp:BoundField DataField="InvoicePayNo" HeaderText="结算单编号" ReadOnly="true" />
            <asp:BoundField DataField="InvoicePayName" HeaderText="结算单名称" ReadOnly="true" />--%>
            <asp:BoundField DataField="InvoiceTime" HeaderText="发票时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:BoundField DataField="TotalAmount" HeaderText="发票总额" ReadOnly="true" DataFormatString="{0:F2}" />
            <%--            <asp:BoundField DataField="InvoicePayTime" HeaderText="支付时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:BoundField DataField="PayAmount" HeaderText="支付总额" ReadOnly="true" />
            <asp:BoundField DataField="AuditPerson" HeaderText="审核人" ReadOnly="true" Visible="false" />
            <asp:BoundField DataField="AuditTime" HeaderText="审核时间" ReadOnly="true" Visible="false"
                DataFormatString="{0:yyyy-MM-dd}" />--%>
            <asp:BoundField DataField="HospitalName" HeaderText="采购医疗机构" ReadOnly="true" />
            <asp:TemplateField HeaderText="状态" Visible="false">
                <ItemTemplate>
                    <asp:Literal ID="ltrStatus" runat="server" Text='<%# Eval("PayStatus") %>'></asp:Literal>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span>可以通过发票号进入查看该发票的详细信息。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <input id="btnBack" runat="server" type="button" value="返回" onclick="javascript:history.go(-1)"
            class="btn" /></div>
</asp:Content>
